<template lang="pug">
  keep-alive
    kalix-table(bizKey="SelectesCourse" title='精选课程列表' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="targetURL"
    v-bind:bizDialog="SelectesCourseDialog"
    v-bind:btnList="SelectesCourseBtnList"
    v-bind:toolbarBtnList="toolbarBtnList")
</template>
<!--v-bind:buttonPermissionPrefix="buttonPermissionPrefix"-->
<!--bizSearch="SelectesCourseSearch"-->
<script type="text/ecmascript-6">
  import {SelectedCourseURL, tainingSelectesCourseBtnPermissionPrefix} from '../../config.toml'
  import {SelectesCourseConfigBtnList} from './config'
  import KalixTable from '../../../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-mooc-selectedcourse',
    components: {KalixTable},
    data() {
      return {
        targetURL: SelectedCourseURL + '/getAllSelectedCourse',
        tableFields: [
          {prop: 'cname', label: '课程名称'},
          {prop: 'uname', label: '授课教师'},
          {prop: 'introduction', label: '课程简介'},
          {prop: 'points', label: '课程要点'},
          {prop: 'photo', label: '课程图片'},
          {prop: 'classHour', label: '课时'},
          {prop: 'credit', label: '学分'},
          {prop: 'gname', label: '课程类别'},
          {prop: 'dname', label: '院系名称'},
          {prop: 'identify', label: '标识'}
        ],
        SelectesCourseDialog: [
          {id: 'add', dialog: 'SelectesCourseAdd'},
          {id: 'edit', dialog: 'SelectesCourseEdit'},
          {id: 'delete', dialog: 'SelectesCourseDelete'}
        ],
        SelectesCourseBtnList: SelectesCourseConfigBtnList,
        toolbarBtnList: [
          {id: 'add', isShow: false, title: '添加', icon: 'icon-pinleizengjia', isPermission: true}
        ],
        buttonPermissionPrefix: tainingSelectesCourseBtnPermissionPrefix
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
